<?php
/**
 * Created by PhpStorm.
 * User: changyifan
 * Date: 2018/1/4
 * Time: 下午2:32
 * 成绩管理
 */

namespace Home\Controller;
use Think\Controller;

class ScoreRuleController extends MainController{
    /* <-------------     成绩转换规则设置   -------------> */
    public function scorerule_general(){
        $tc_info = $this->teachingclass -> getTeachingClassInfoListByAll();
        $this->assign('tc_info',$tc_info);
        $this->display();
    }
    public function scorerule_general_ShowDatatables(){
        $tc_id = I('tc_id');
        $scorerule_id = I('scorerule_id');
        if ($scorerule_id == 0){

            $info = $this->practice_rule->getPricticeRuleInfoListWithTcId($tc_id);

        }else{
            $info = $this->bbs_rule -> getBbsRuleInfoListWithTcId($tc_id);
        }

        if ($info) {
            $result['aaData'] = $info;
        } else {
            $result['aaData'] = array();
        }
        echo json_encode($result);
    }
    /* <-------------       论坛成绩查询    -------------> */
    public function score_statistics_bbs(){
        $this->display();
    }
    /* <-------------       平时成绩查询    -------------> */
    public function score_statistics_general(){
        $this->display();
    }
    /* <-------------         成绩编辑     -------------> */
    public function score_edit(){
        $this->display();
    }
    /* <-------------         成绩统计     -------------> */
    public function score_statistics(){
        $this->display();
    }


















}